package com.sofa.shark.file.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;


/**
 * @author tonyp
 */
@Data
@ConfigurationProperties(prefix = "files")
public class RemoteFileProperties {

    private Boolean enabled;
    private String fileUrl;
    private String group ;
    private int connectTimeoutMillis;
    private int readTimeoutMillis;
    private int period;
    private int maxPeriod;
    private int maxAttempts;
    public RemoteFileProperties(){
        this.group="group1";
        this.connectTimeoutMillis=1000;
        this.readTimeoutMillis=3500;
        this.period=5000;
        this.maxPeriod=5000;
        this.maxAttempts=3;
    }
}
